package cn.zlj.nmcc.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum GlobalExceptionCodeEnum {

   //公共类
    OK("成功","0"),
    ERROR("失败","-1"),
    //100x为system
    SERVER_PARAM_IS_NULL("参数不能为空","1001"),
    SERVICE_ERROR("服务被熔断","1002"),
    //200x uaa
    UAA_PARAM_IS_NULL("参数不能为空","2002"),
    UAA_PARAM_IS_exists("短信已存在","2003"),
    UAA_YZM_IS_exists("验证码过期","2004"),
    UAA_NOT_IS_EXISTS("用户不存在","2004"),
     //300x user
     USER_PARAM_IS_NULL("参数不能为空","3001"),
     USER_PHONE_WR_NULL("手机验证码错误,请检查","3002"),
       USER_LOGIN_ERROR("登录信息错误","3003"),
     USER_PARAM_IS_exists("手机号已经被注册","3004"),
    //400x course
    COURSE_NAME_ALREADY_EXISTS("课程名字已存在","4001")
    ;

    private String message;

    private String code;

}
